// pages/home/home.js
Page({
  data: {
    shop: {},
  },
  onLoad: function() {
    // 从本地存储中获取 shop 数据
    const shop = wx.getStorageSync('shop');
    if (shop) {
      this.setData({
        shop: shop
      });
      console.log(this.data.shop.name);
    }
  }
})